package cn.easybuy.entity;

public class OrderDetail {
    private int id;//ID
    private int orderId;//订单ID
    private int productId;//商品id
    private int quantity;//数量
    private Float cost;//价格

    public OrderDetail(){

    }

    public OrderDetail(Integer id, Integer orderId, Integer quantity, Float cost, Integer productId) {
        this.id = id;
        this.orderId = orderId;
        this.quantity = quantity;
        this.cost = cost;
        this.productId = productId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Float getCost() {
        return cost;
    }

    public void setCost(Float cost) {
        this.cost = cost;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    @Override
    public String toString() {
        return "OrderDetail{" +
                "id=" + id +
                ", orderId=" + orderId +
                ", quantity=" + quantity +
                ", cost=" + cost +
                ", productId=" + productId +
                '}';
    }
}
